Component({
  properties: {
    tabList:{
      type: Array,
      value: []
    },
    currentTab: { // 当前选中的tab
      type: Number,
      value: 0
    }
  },
  data: {
  },
  methods: {
    tabHanlde(e) {
      var { index } = e.currentTarget.dataset;
      if (index == this.data.currentTab)return
      this.setData({
        currentTab: index
      })
      this.triggerEvent('tabHanlde', { index })
    }
  }
})
